<?php $user=$session->read('User');
$companyid=$session->read("companyid");
?>
<div class="right_side_operate_area">
	<div class="right_side_title left">
    	<h2>
		<?php 
			$companyname=$session->read("companyname");
			echo $html->link($companyname,"/companys/showinfosummary/".$companyid);
		?>
    	</h2>
    	<div class='clear'></div>
    </div>
	
    <div class="right item_add_btn">
    <?php 
		echo $html->link("返回","/companys/demand/");?>    
    </div>
    <div class="clear"></div>
</div>
<div class="right_side_scollbar">
    <div class="detail_info_panel">
    	<?php echo $form -> create('demands', array('url' => '/companys/editdemand/','enctype'=>'multipart/form-data','type'=> 'post','onsubmit'=>'return checksave()') ); ?>
 		<div class="details_item_line">  
			        <div class="details_item">
			               <div class="form_left_title left">标题：</div>
			               <div class="form_right_input left"><?php echo $form->value('CompDemand.title') ;?></div>
		            </div>
		    </div>
		    
		    <div class="details_item_line">  
			        <div class="details_item">
			               <div class="form_left_title left">发布人：</div>
			               <div class="form_right_input left"><?php echo $form->value('CompDemand.publisher') ;?></div>
		            </div>
		    </div>
		    
		    <div class="details_item_line">  
			        <div class="details_item">
			               <div class="form_left_title left">有效期：</div>
			               <div class="form_right_input left"><?php echo $form->value('CompDemand.validity') ;?>&nbsp天</div>
		            </div>
		    </div>
		    
		    <div class="details_item_line">  
			        <div class="details_item">
			               <div class="form_left_title left">需求类型：</div>
			               <div class="form_right_input left">
			               <?php $require_type= $form->value('CompDemand.require_type');
                	       foreach($type as $key=>$rtype){
                		   if($key==$require_type){                		  
                		   echo $rtype;break;
                		}                	
                	}
                ?>		               		
			               </div>
		            </div>
		    </div>		    
		    <div class="details_item_line">  
			        <div class="details_item">
			               <div class="form_left_title left">需求描述：</div>
			               <div class="form_right_input left"><?php echo $form->value('CompDemand.need');?></div>
		            </div>
		    </div>    		
    </div>
</div>